package com.ruike.service.impl;

import com.ruike.mapper.AdminMapper;
import com.ruike.pojo.Admin;
import com.ruike.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 吴泽胜
 * @FileName AdminServiceImpl
 * @date 2021-01-17 6:03 下午
 * @Software: IntelliJ IDEA
 */
@Service
public class AdminServiceImpl implements AdminService {

    @Autowired
    private AdminMapper adminMapper;

    @Override
    public Admin findAdminByteacherIdAndPassword(Admin admin) {
        return adminMapper.findAdminByteacherIdAndPassword(admin);
    }

    @Override
    public Admin findAdminByAdmin_id(String admin_id) {
        return adminMapper.findAdminByAdmin_id(admin_id);
    }
}
